function generateRandom() {
    return Math.floor(1+Math.random()*0x10000).toString(16).substring(1);
}
let requestID = null;
XMLHttpRequest.prototype.reallOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (method,url,async,user,password) {
    requestID = generateRandom();
    var signed_url = url+"AJAXINTERCEPT"+requestID;
    this.reallOpen(method,signed_url,async,user,password);
}
XMLHttpRequest.prototype.reallySend = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function (body) {
    interception.customAjax(requestID,body);
    this.reallySend(body);

}
console.log("地图open")